package com.ldg.page.controller;

import com.ldg.page.service.PageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @Author: Liudao
 * @Date: 2022-09-28-19:16
 * @Description:
 */
@RestController
@RequestMapping("page")
public class PageController {
    @Autowired
    private PageService pageService;
    @RequestMapping("/creatP/{id}")
    public void creatP(@PathVariable long id ) throws IOException {
        pageService.creatP(id);
    }
}
